package net.moonbiter.ebs.exposer;

import net.moonbiter.ebs.BusinessProvider;
import net.moonbiter.ebs.BusinessService;
import net.moonbiter.ebs.Input;

@BusinessProvider("counter")
public class CounterService {
	private int counter = 0;

	@BusinessService("inc")
	public int inc(){
		return ++counter;
	}
	
	@BusinessService
	public String capitalize(@Input(name="x")String x){
		return x.toUpperCase();
	}
	
	@BusinessService
	public String saluta(@Input(name="nome")String nome){
		return "CIAO "+nome;
	}
}
